<template>
  <div></div>
</template>

<script>
import { onMounted } from "vue";
export default {
  emits: ["scroll"],
  setup(props, { emit }) {
    onMounted(() => {
      const tablescroll = document.querySelector(".trad-all1");
      if (tablescroll) {
        tablescroll.onscroll = function() {
          if (
            tablescroll.scrollHeight - tablescroll.scrollTop - 5 <=
            tablescroll.clientHeight
          ) {
            emit("scroll");
          }
        };
      }
    });
  },
};
</script>

<style></style>
